SELECT p.iPostID, p.iPostType, p.iAdType, p.iUserType, p.strTitle, p.iSubType, p.iItemType, p.iPrice, p.iPriceUnit, json_unquote(p.jsonLocation->"$.city") AS city, p.jsonExtra, p.tmPosted, p.iShowImg, p.strImages, p.strVideos, p.strPostURL FROM posts p WHERE p.iActive=1 AND p.iPostType=12 AND iPostID IN (SELECT t.iPostID FROM posttext t WHERE t.iDomID=101 AND MATCH (t.strSearch) AGAINST ('+post +classifieds +ads +for +free' IN BOOLEAN MODE)) AND iCityID IN (67787,69682,68625,70070,67744,69084,69852,68708,69808,67670,69960,67299,69617,69271,69687,69395,69201,68036,69581,69967,69050,67109) ORDER BY FIELD(iCityID, 67787,69682,68625,70070,67744,69084,69852,68708,69808,67670,69960,67299,69617,69271,69687,69395,69201,68036,69581,69967,69050,67109) ASC, p.tmPosted DESC LIMIT 24